package cn.tedu.backend.portal.mapper;

import cn.tedu.backend.portal.model.Attractions;
import cn.tedu.backend.portal.model.Picture;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PictureMapper extends BaseMapper<Picture> {
    //根据景点id查询图片
    @Select("select way from picture where aid=#{id}")
    List<Picture> selectPictures(int id);

  @Select("select * from picture")
  List<Picture> getPictures();

}
